package main

import (
	in "bbtradeByGo/init"
	"bbtradeByGo/pkg/logging"
	"bbtradeByGo/service/match/match"
	"time"
)

func placeRun() {
	t := time.NewTicker(3 * time.Second)
	for _ = range t.C {
		//同步订单
		match.OrderPlace()
	}
}

func cancelRun() {
	t := time.NewTicker(3 * time.Second)
	for _ = range t.C {
		//取消订单
		match.CancelPush()
	}
}

func main() {
	in.Init()
	logging.Info("entrance.match.main process is running")

	go placeRun()
	cancelRun()

}
